using System;
using System.Collections.Generic;

namespace Mars.ShaderAnalysis
{
    [Serializable]
    public class SubShaderAnalysis
    {
        public List<PassAnalysis> passAnalysisList = new List<PassAnalysis>();

        public SubShaderAnalysis()
        {
        }

        public SubShaderAnalysis(SubShaderAnalysis subShaderAnalysis)
        {
            DeepCopy(subShaderAnalysis);
        }

        public void DeepCopy(SubShaderAnalysis subShaderAnalysis)
        {
            for (int i = 0; i < subShaderAnalysis.passAnalysisList.Count; i++)
            {
                passAnalysisList.Add(new PassAnalysis(subShaderAnalysis.passAnalysisList[i]));
            }
        }
    }
}